home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / examples / fog / README < prev   
Encoding:
Text File  |  1996-11-11  |  1.1 KB  |  33 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.       ~opengl2/examples/fog README
  9.  
  10.             Copyright 1991-93, 1995, Silicon Graphics,  Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.  
  15.  
  16.    fog.c:  demonstrates how to use fog
  17.  
  18.      This program demonstrates using different types of fog. 
  19.       Pressing the <f> key chooses between 3 types of fog:
  20.       exponential, exponential squared, and linear.
  21.  
  22.     If the fog mode is GL_EXP or GL_EXP2, pressing the up and down 
  23.     arrow keys adjusts the density value.
  24.  
  25.     If the fog mode is GL_LINEAR, pressing the up and down 
  26.     arrow keys adjusts the end value for linear fog. The start value 
  27.     for the linear fog is fixed.
  28.  
  29.     Escape key    - exit the program
  30.     <f> key        - change the fog blend function
  31.     UP Arrow Key    - increase the fog density or end value
  32.     DOWN Arrow Key    - decrease the fog density or end value
  33.